package com.h2n.framework.dto;

import java.util.Map;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: NhatNV
 * Date: Sep 27, 2009
 * Time: 11:00:48 PM
 * To change this template use File | Settings | File Templates.
 */
public class GroupModuleDTO {
  private int id;
  public void setId(int _id){
    this.id = _id;
  }
  public int getId(){
    return this.id;
  }

  private int group_Id;
  public void setGroup_Id(int _groupId){
    this.group_Id = _groupId;
  }
  public int getGroup_Id(){
    return this.group_Id;
  }

  private int module_Id;
  public void setModule_Id(int _moduleId){
    this.module_Id = _moduleId;
  }
  public int getModule_Id(){
    return this.module_Id;
  }

  public enum Parameters{
    p_id,
    p_group_id,
    p_module_id;
  }

  public Map getMap(){
    Map map = new HashMap();
    map.put(Parameters.p_id.toString(),this.id);
    map.put(Parameters.p_group_id.toString(),this.group_Id);
    map.put(Parameters.p_module_id.toString(),this.module_Id);

    return map;
  }

  public static final String INSERT_PROCEDURE = "group_modules_insert";
  public static final String UPDATE_PROCEDURE = "group_modules_update";
  public static final String DELETE_PROCEDURE = "group_modules_delete";
}
